<div class="main">
	<div class="container">
		<div style="background:#fff;min-height: 800px; margin: 20px 0;display: flex;">
			<div class="user_center_left">
				{include file="common/sidenav"}
			</div>
			<div class="user_center_right">
				<div class="user_center_right_hd">
					我的订阅
				</div>
				<div class="qiye_bd">
					<div style="display: flex; justify-content: space-between; padding: 20px;">
						<ul class="tab_hd">
							<li {if(!request()->has('status'))}class="active"{/if}><a href="{:url('user/wode_dingyue')}">全部</a></li>
							{volist name="status_arr" id="item"}
							<li {if(request()->has('status') && request()->param('status')==$key)}class="active"{/if}><a href="{:url('user/wode_dingyue',['status'=>$key])}">{$item}</a></li>
							{/volist}
						</ul>

					</div>
					<dl class="product_list">
						<dt>
							<div style="width: 12%;">订阅单号</div>
							<div style="width: 28%;">期刊名称</div>
							<div style="width: 12%;">单价</div>
							<div style="width: 12%;">数量</div>
							<div style="width: 12%;">总价</div>
							<div style="width: 12%;">订单状态</div>
							<div style="width: 12%;">操作</div>
						</dt>
						{volist name="rs" id="item"}
						<dd>
							<div style="width: 12%;text-align: center;">{$item.order_sn}</div>
							<div style="width: 28%;">
								<div style="display: flex;align-items: center;">
									<img src="{$item.image}" style="width: 60px;height: 60px;float: left;" />
									<div style="flex:1; margin-left: 10px;">{$item.name}</div>
								</div>
							</div>
							<div style="width: 12%;text-align: center;">￥{$item.price}/每份</div>
							<div style="width: 12%;text-align: center;">{$item.dinggoufenshu}</div>
							<div style="width: 12%;text-align: center;">￥{$item.money}</div>
							<div style="width: 12%;text-align: center;">{$status_arr[$item.status]}</div>
							<div style="width: 12%;text-align: center;">
								<a href="{:url('user/wode_dingyue_detail',['id'=>$item.id])}" target="_blank">查看详情</a>
								{if($item.status=='0')}
								<a href="javascript:void(0);" onclick="fukuan({$item.id})">付款</a>
								{/if}
							</div>
						</dd>
						{/volist}
					</dl>
				</div>
			</div>
		</div>
	</div>
</div>

<script>
function fukuan(id){
	layer.open({
		type: 2,
		title: '付款',
		shadeClose: true,
		area: ['450px', '700px'],
		content: ["{:url('zhuanyeshukan/qikan_dingyue_fukuan')}?id="+id, 'no'],
	});
}



function show_result(){
		window.location.href="{:url('zhuanyeshukan/qikan_dingyue_result')}";
	}
</script>
